home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / comm / ftp4w24b.zip / vb / ftp_put.frm < prev    next >
Text File  |  1995-01-18  |  3KB  |  115 lines

  1. VERSION 2.00
  2. Begin Form Put_file 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Put File"
  6.    ClientHeight    =   2160
  7.    ClientLeft      =   3300
  8.    ClientTop       =   2055
  9.    ClientWidth     =   3210
  10.    ControlBox      =   0   'False
  11.    Height          =   2565
  12.    Left            =   3240
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   2160
  17.    ScaleWidth      =   3210
  18.    Top             =   1710
  19.    Width           =   3330
  20.    Begin CommandButton Cancelput 
  21.       Cancel          =   -1  'True
  22.       Caption         =   "Cancel"
  23.       Height          =   375
  24.       Left            =   2040
  25.       TabIndex        =   4
  26.       Top             =   1560
  27.       Width           =   975
  28.    End
  29.    Begin CommandButton PutFile 
  30.       Caption         =   "Put"
  31.       Default         =   -1  'True
  32.       Height          =   375
  33.       Left            =   120
  34.       TabIndex        =   3
  35.       Top             =   1560
  36.       Width           =   975
  37.    End
  38.    Begin TextBox LocalFile 
  39.       Height          =   285
  40.       Left            =   1320
  41.       TabIndex        =   1
  42.       Text            =   "LocalFile"
  43.       Top             =   240
  44.       Width           =   1695
  45.    End
  46.    Begin TextBox HostFile 
  47.       Height          =   285
  48.       Left            =   1320
  49.       TabIndex        =   2
  50.       Text            =   "HostFile"
  51.       Top             =   840
  52.       Width           =   1695
  53.    End
  54.    Begin Label Label2 
  55.       BackColor       =   &H00C0C0C0&
  56.       Caption         =   "Local File :"
  57.       Height          =   255
  58.       Left            =   120
  59.       TabIndex        =   5
  60.       Top             =   240
  61.       Width           =   1095
  62.    End
  63.    Begin Label Label1 
  64.       BackColor       =   &H00C0C0C0&
  65.       Caption         =   "Host File :"
  66.       Height          =   255
  67.       Left            =   120
  68.       TabIndex        =   0
  69.       Top             =   840
  70.       Width           =   1095
  71.    End
  72. End
  73.  
  74. Sub Cancelput_Click ()
  75.   '
  76.   OKDialog = False
  77.   Unload Put_file
  78.   '
  79. End Sub
  80.  
  81. Sub Form_Load ()
  82.   '
  83.   Put_file!HostFile.Text = ""
  84.   Put_file!LocalFile.Text = ""
  85.   '
  86. End Sub
  87.  
  88. Sub PutFile_Click ()
  89.   '
  90.   Dim Hulp As String
  91.   '
  92.   Src_nam = Put_file!LocalFile.Text
  93.   Dest_nam = Put_file!HostFile.Text
  94.   '
  95.   If Len(Trim$(Src_nam)) <> 0 Then
  96.     If Dir$(Src_nam) <> "" Then
  97.       If Len(Trim$(Dest_nam)) = 0 Then
  98.         Hulp = Src_nam
  99.         While InStr(Hulp, "\") <> 0
  100.           Hulp = Right$(Hulp, Len(Hulp) - InStr(Hulp, "\"))
  101.         Wend
  102.         Dest_nam = Hulp
  103.       End If
  104.       OKDialog = True
  105.       Unload Put_file
  106.     Else
  107.       MsgBox "File does not exist " & Destnam, 64, "Warning"
  108.     End If
  109.   Else
  110.     MsgBox "You must at least enter a source name", 64, "Warning"
  111.   End If
  112.   '
  113. End Sub
  114.  
  115.